package org.projetjava.metier.model;

import java.awt.Image;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.imageio.ImageIO;

public class Lieu {
	
	private String libelle;
	private Image image;
	
	
	
	public String getLibelle() {
		return libelle;
	}
	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}
	public Image getImage() {
		return image;
	}
	public void setImage(Image image) {
		this.image = image;
	}
	
	public Lieu(String libelle, String image)
	{
		try {
		      Image img = ImageIO.read(new File(image));
		      this.image = img;
		    } catch (IOException e) {
		      e.printStackTrace();
		    } 
		
		this.libelle = libelle;
		
	}
	

	
	

}
